package com.kamistoat.meimeimall.meimeimallauthserver.feign;

import com.kamistoat.meimeimall.common.To.EsTo.RegisterUpTo;
import com.kamistoat.meimeimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * (已弃用) search模块feign定义
 */
@FeignClient("meimeimall-search")
public interface SearchFeignService {
    @RequestMapping("/search/save/memberToES")
    R registerUpToES(@RequestBody RegisterUpTo registerUpTo);

    @GetMapping("/search/save/usernameUniqueES")
    Integer usernameUniqueES(@RequestParam String username);
}
